Discover mongo shell list collections, include the articles, news, trends, analysis and practical advice about mongo shell list collections on alibabacloud.com
In addition to the documentation in the MongoDB Manual, the MONGO Shell provides some additional information in I TS "Online" Help system. This document provides a overview of accessing this Help information.Command line HelpThe list of options and
The production environment uses the MONGO database.Long-coveted for the MONGO database, its high performance/open source/modeless/document-based database/... What a tempting feature, also occasionally tossing and playing, but did not make notes,
Mongo client Common commands 1. database related commands 1showdbs list all databases 2usememo Use Database memo. Even if the database does not exist, it can be executed, but the database will not be created immediately. The database will be created
I. Description
1, the study of the series MongoDB learning environment using the MongoDB version of mongodb-win32-i386-2.4.6, operating system for Win7.
Second, installation
1, new two directories, respectively,
MongoDB stores BSON documents, i.e. data records, in collections; The collections in databases.DatabasesIn MongoDB, databases hold collections of documents.To select a database to use, in the MONGO Shell, issue the use statement, as in the
================================mongo Create a user and create a database ===========================1. MongoDBPs-ef | grep MongodNormal User startup modeMongod--config/etc/mongod.confAuthentication User startup
1. Gridfs IntroductionGridfs is a submodule of MONGO that uses GRIDFS to persist files based on MongoDB. and supports distributed applications (file distribution storage and reading). As a solution for storing binary data in MongoDB in a database,
MongoDB stores BSON files as data records into the collection; The following is the collection in the database.First, DatabasesIn MongoDB, the database saves a document-style collection.In the MONGO shell, if you want to select a certain database to
To open the shell, first start mongod -- dbpathd: app1_data on the server, and then open shell: mongolocalhost: 27017. The default value is test user. We can increase the permission by using mongolocalhost: 27017admin. create a database use
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.